package cn.tedu.ximart.server.mapper;
import java.util.List;

import cn.tedu.ximart.server.pojo.vo.AlbumDetailVO;
import cn.tedu.ximart.server.pojo.vo.AlbumListItemVO;
import org.apache.ibatis.annotations.Param;

import cn.tedu.ximart.server.pojo.entity.Album;
import org.springframework.stereotype.Repository;

/**
* @author HCL
* @description 针对表【pms_album(相册)】的数据库操作Mapper
* @createDate 2022-07-22 09:38:33
* @Entity cn.tedu.ximart.server.pojo.entity.Album
*/
@Repository
public interface AlbumMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Album record);

    int insertSelective(Album record);

    AlbumDetailVO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Album record);

    int updateByPrimaryKey(Album record);

    int countByName(@Param("name") String name);

    AlbumDetailVO getById(@Param("id") Long id);

    List<AlbumListItemVO> list();

    int count();

    int deleteByIds(Long[] ids);

    AlbumDetailVO getByName(@Param("name") String name);

    int updateSelective(Album album);
}
